package com.huiminpay.merchant.convert;

import com.huiminpay.merchant.vo.MerchantVo;
import com.huiminpay.merchant.vo.RegMchVo;
import com.yh.merchant.api.dto.MerchantDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface MerchantConvert {

    MerchantConvert INSTANCE = Mappers.getMapper(MerchantConvert.class);

    //对象转换
    MerchantDTO vo2dto(RegMchVo regMchVo);

    RegMchVo dto2vo(MerchantDTO merchantVo);

    MerchantDTO vo2dto2(MerchantVo merchantVo);

    MerchantVo dto2vo2(MerchantDTO merchantDTO);
}
